//
//  ViewController.swift
//  TestPush
//
//  Created by macbook on 2017/6/8.
//  Copyright © 2017年 oceansoft. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    //正常跳转
    @IBAction func clickToNextVC(_ sender: Any) {
        //第一种方式：通过segue跳转 就是两个控制器之间的连线
        self.performSegue(withIdentifier: "toNext", sender: nil);
        
//        //第二种方式 通过storyboard 中控制器的 id来跳转
//        
//        let secondVC = self.storyboard?.instantiateViewController(withIdentifier: "SecondViewController");
//        
//        self.navigationController?.pushViewController(secondVC!, animated: true);
    }

    
    //空白跳转
    @IBAction func clickToNewVC(_ sender: Any) {
        
        let secondVC = SecondViewController();
        
        self.navigationController?.pushViewController(secondVC, animated: true);
    }
}

